var { successData } = require('../serverData')
const personal = (req, res) => {
    let menuData = [
        {
            id: 1,
            parentId: 0,
            path: '/dashboard',
            url: '/dashboard/Index',
            icon: 'dashboard',
            level: 1,
            name: '仪表盘'
        },
        {
            id: 2,
            parentId: 0,
            path: '/shopping',
            url: '/shopping/Index',
            icon: 'shopping',
            level: 1,
            name: '商品管理'
        },
        {
            id: 3,
            parentId: 0,
            path: '/order',
            url: '/order/Index',
            icon: 'snippets',
            level: 1,
            name: '订单管理'
        },
        {
            id: 5,
            parentId: 0,
            path: '/setUp',
            icon: 'setting',
            level: 0,
            name: '设置',
            children: [
                {
                    id: 51,
                    parentId: 5,
                    path: '/menu',
                    url: '/menu/Index',
                    icon: 'menu',
                    level: 1,
                    name: '菜单管理'
                },
                {
                    id: 52,
                    parentId: 5,
                    path: '/role',
                    url: '/role/Index',
                    icon: 'deployment-unit',
                    level: 1,
                    name: '角色管理'
                },
                {
                    id: 53,
                    parentId: 5,
                    path: '/subscriber',
                    icon: 'usergroup-add',
                    level: 0,
                    name: '用户管理',
                    children: [
                        {
                            id: 531,
                            parentId: 53,
                            path: '/users',
                            url: '/users/Index',
                            icon: 'team',
                            level: 1,
                            name: '平台用户'
                        },
                        {
                            id: 532,
                            parentId: 53,
                            path: '/admin',
                            url: '/admin/Index',
                            icon: 'solution',
                            level: 1,
                            name: '系统用户'
                        }
                    ]
                }
            ]
        }
    ];
    successData.data = menuData
    res.end(JSON.stringify(successData));
}

module.exports = personal